cd "/media/Environ/Compile/rocksndiamonds-4.1.4.1" && /usr/bin/gdb -- "/media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds"
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 26007)]
[New Thread 0x7fffe37ab700 (LWP 26008)]
[New Thread 0x7fffe1905700 (LWP 26009)]
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented

Thread 1 "rocksndiamonds" received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x6177687469617262) at malloc.c:3093
3093	malloc.c: No such file or directory.
(gdb) bt
#0  __GI___libc_free (mem=0x6177687469617262) at malloc.c:3093
#1  0x0000555555713b28 in checked_free (ptr=0x6177687469617262) at misc.c:1275
#2  0x0000555555705cbc in FreeSnapshotBuffer (bi_raw=0x55555b11f5b0) at snapshot.c:72
#3  0x0000555555714fdf in deleteNodeFromList (node_first=0x7fffffffd898, key=0x0, 
    destructor_function=0x555555705c72 <FreeSnapshotBuffer>) at misc.c:2084
#4  0x0000555555705cf1 in FreeSnapshotBuffers (snapshot_buffers=0x55555b11f5d0) at snapshot.c:79
#5  0x0000555555705d2b in FreeSnapshotSingle () at snapshot.c:93
#6  0x0000555555705ec0 in SaveSnapshotSingle (snapshot_buffers=0x555559a381d0) at snapshot.c:177
#7  0x00005555556b3e03 in SaveEngineSnapshotSingle () at game.c:15383
#8  0x00005555556ed824 in TapeQuickSave () at tape.c:1023
#9  0x000055555564a4ae in HandleKey (key=1073741891, key_status=1) at events.c:2241
#10 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd990) at events.c:1462
#11 0x0000555555646b84 in HandleEvents () at events.c:249
#12 0x0000555555646d67 in EventLoop () at events.c:348
#13 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) # was trying to save tape
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 28344)]
[New Thread 0x7fffe37ab700 (LWP 28345)]
[New Thread 0x7fffe1906700 (LWP 28347)]
corrupted size vs. prev_size in fastbins

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n")
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a05b98 "corrupted size vs. prev_size in fastbins")
    at malloc.c:5341
#4  0x00007ffff78ffe84 in malloc_consolidate (av=av@entry=0x7ffff7a3bc40 <main_arena>) at malloc.c:4487
#5  0x00007ffff790179a in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x55555c185670, have_lock=<optimized out>) at malloc.c:4392
#6  0x00005555556ff04d in FreeGadget (gi=0x55555c194080) at gadgets.c:1451
#7  0x00005555556b44bd in FreeGameButtons () at game.c:15678
#8  0x0000555555686243 in InitGame () at game.c:4218
#9  0x00005555556ed276 in TapeStartGamePlaying () at tape.c:808
#10 0x00005555556ed8be in TapeQuickLoad () at tape.c:1050
#11 0x000055555564a4c0 in HandleKey (key=1073741884, key_status=1) at events.c:2243
#12 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd990) at events.c:1462
#13 0x0000555555646b84 in HandleEvents () at events.c:249
#14 0x0000555555646d67 in EventLoop () at events.c:348
#15 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) # doing something with saving
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 29862)]
[New Thread 0x7fffe37ab700 (LWP 29863)]
[New Thread 0x7fffe1905700 (LWP 29868)]
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
free(): invalid pointer

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) # just finised a level for the first time
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 32697)]
[New Thread 0x7fffe37ab700 (LWP 32698)]
[New Thread 0x7fffe1906700 (LWP 32701)]
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)
[Thread 0x7fffe37ab700 (LWP 32698) exited]
[Thread 0x7fffe37ec700 (LWP 32697) exited]
[Thread 0x7fffe1906700 (LWP 32701) exited]
[Inferior 1 (process 32693) exited normally]
(gdb) q
